package graphics;

// 图形类
public class Shape {
    public void draw() {
        System.out.println("画图形！");
    }
}
// 矩形
class Rect extends Shape {
    public void draw() {
        System.out.println("♦");
    }
}
// 圆形
class Cycle extends Shape {
    public void draw() {
        System.out.println("●");
    }
}
// 花
class Flower extends Shape {
    public void draw() {
        System.out.println("❀");
    }
}

// 三角形
class Triangle extends Shape {
    public void draw() {
        System.out.println("△");
    }
}
